package edu.uni.dormitory.dto;

public class Query{
    private int page = 1;
    private int limit = 10;
    private int offset = (page-1)*limit;
    public Query(){
        super();
    }
    public Query(int page,int limit){
        this.page = page;
        this.limit = limit;
        this.offset = (page-1)*limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

}
